import http from "./http";

// 小程序登录
export const getLoginApi = data => http.post("/auth/login", data);

// 手机号
export const getLoginPhoneApi = data => http.post("/auth/login_phone", data);

// 总览信息
export const getOverViewDataApi = data =>
  http.post("/overview/statistic", data);

// 获取区域数据
export const getAreaListApi = data => http.post("/area/list", data);

export const getAreaApi = data => http.post("/area/get", data);

// 获取工程列表
export const getProjectListApi = data => http.post("/project/list", data);

// 新增工程列表
export const getProjectAddApi = data => http.post("/project/add", data);

// 修改工程信息
export const getProjectChangeApi = data => http.post("/project/change", data);

// 获取单个工程信息
export const getProjectInfoApi = data => http.post("/project/get", data);

// 删除单个工程
export const removeProjectApi = data => http.post("/project/delete", data);

// 获取单个工程用户
export const getProjectUserApi = data => http.post("/user/list", data);

// 工程添加用户
export const addProjectUserApi = data => http.post("/user/bind", data);

// 工程解绑用户
export const unbindProjectUserApi = data => http.post("/user/unbind", data);

// 修改工程经纬度
export const getProjectAdjustApi = data => http.post("/project/adjust", data);

// 获取布点列表
export const getPointListApi = data => http.post("/point/list", data);

// 获取单个布点信息
export const getPointDetailApi = data => http.post("/point/get", data);

// 添加布点
export const addPointApi = data => http.post("/point/add", data);

// 批量添加布点
export const batchAddPointApi = data => http.post("/point/batchadd", data);

// 修改布点信息
export const changePointApi = data => http.post("/point/change", data);

// 绑定布点设备
export const bindPointApi = data => http.post("/point/bind", data);

// 解绑布点设备
export const unbindPointApi = data => http.post("/point/unbind", data);

// 修改布点经纬度
export const adjustPointApi = data => http.post("/point/adjust", data);

// 删除布点
export const deletePointApi = data => http.post("/point/delete", data);

// 获取探测列表
export const getDetectListbyuserApi = data =>
  http.post("/detect/listbyuser", data);

// 新增探测
export const addDetectDataApi = data => http.post("/detect/add", data);

//  删除探测
export const removeDetectDataApi = data => http.post("/detect/delete", data);

// 获取检查列表
export const getInspectbyuserApi = data =>
  http.post("/inspect/listbyuser", data);

// 删除检查
export const removeInspectDataApi = data => http.post("/inspect/delete", data);

// 获取单个检查
export const getInspectDataApi = data => http.post("/inspect/get", data);

// 完成检查
export const getInspectDoneApi = data => http.post("/inspect/done", data);

// 添加检查
export const addInspectApi = data => http.post("/inspect/add", data);

// 获取报警列表
export const getWarnbyuserApi = data => http.post("/warn/listbyuser", data);

// 获取报警记录
export const getWarnbypointApi = data => http.post("/warn/listbypoint", data);

// 确认报警
export const getWarnConfirmApi = data => http.post("/warn/confirm", data);

// 任务数
export const getTaskcountApi = data => http.post("/overview/task_count", data);
